home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / monitory / lockmon / poster < prev   
Text File  |  1986-04-07  |  1KB  |  29 lines

  1. File: AMIGA.2555
  2. From: dewi@druca.UUCP (WilliamsD)
  3. Newsgroups: net.micro.amiga
  4. Subject: How many locks have I left lying around?
  5. Date: 25 Mar 86 15:38:46 GMT
  6. Organization: AT&T Information Systems Labs, Denver, Co
  7. Lines: 215
  8. Keywords: AmigaDOS, locks, resource allocation/management
  9.  
  10. The following piece of code is something I cooked up in order to check if
  11. I was unlocking all my filesystem locks in my current project. I use it
  12. with AvailMem (Avail?, I forget at the moment...) and Frags to ensure that
  13. my code isn't slowly dribbling away pieces of the system.
  14.  
  15. It's a rather offbeat way of doing it, but I thought I'd post it to the net
  16. for 2 reasons: 
  17.         1. Somebody might find it useful.
  18.         2. Somebody might suggest a better way of doing it! I'm not
  19.            overly happy with this approach.
  20.  
  21. It works most OK of the time, but once in a blue moon the system will
  22. request that my boot volume get re-mounted before I get around to analyzing
  23. its DeviceList entries. No harm done, LockMon will just report it as mounted.
  24.  
  25.                 Yours in Amiga-ing,
  26.                         Dewi Williams
  27.                         uucp:      ..!ihnp4!druca!dewi
  28.                         phone:     (303) 538 4884
  29.